package com.yc.cloud.openai.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class NlpChunkDto {

    @JsonProperty("id")
    private String id;
    @JsonProperty("object")
    private String object;
    @JsonProperty("created")
    private Integer created;
    @JsonProperty("system_fingerprint")
    private Object systemFingerprint;
    @JsonProperty("choices")
    private List<ChoicesDTO> choices;

    @NoArgsConstructor
    @Data
    public static class ChoicesDTO {
        @JsonProperty("index")
        private Integer index;
        @JsonProperty("delta")
        private DeltaDTO delta;
        @JsonProperty("logprobs")
        private Object logprobs;
        @JsonProperty("finish_details")
        private Object finishDetails;

        @NoArgsConstructor
        @Data
        public static class DeltaDTO {
            @JsonProperty("content")
            private String content;
        }
    }
}
